import request from '@/utils/request'
const api_name = '/eduservice/video'

export default {

  saveVideoInfo(videoVo) {
    return request({
      url: `${api_name}/saveVideoInfo`,
      method: 'post',
      data: videoVo
    })
  },

  getVideoInfoById(id) {
    return request({
      url: `${api_name}/videoInfo/${id}`,
      method: 'get'
    })
  },

  updateVideoInfoById(videoVo) {
    return request({
      url: `${api_name}/updateVideoInfo/${videoVo.id}`,
      method: 'put',
      data: videoVo
    })
  },

  removeById(id) {
    return request({
      url: `${api_name}/${id}`,
      method: 'delete'
    })
  }
}